<?php

declare(strict_types=1);

namespace App\Entity;

use App\Models\UserChannel;

class UserChannelEntity extends ABaseEntity
{
    /**
     * UserChannelEntity constructor.
     */
    public function __construct(UserChannel $model)
    {
        $this->model = $model;
    }

    public function getId(): int
    {
        return (int) $this->model->id;
    }

    public function setId(int $id): void
    {
        $this->model->id = $id;
    }

    public function getChannelid(): int
    {
        return (int) $this->model->channelid;
    }

    public function setChannelid(int $channelid): void
    {
        $this->model->channelid = $channelid;
    }

    public function getCreateat(): string
    {
        return (string) $this->model->createat;
    }

    public function setCreateat(string $createat): void
    {
        $this->model->createat = $createat;
    }

    public function getUpdateat(): string
    {
        return (string) $this->model->updateat;
    }

    public function setUpdateat(string $updateat): void
    {
        $this->model->updateat = $updateat;
    }

    public function getName(): string
    {
        return (string) $this->model->name;
    }

    public function setName(string $name): void
    {
        $this->model->name = $name;
    }

    public function getPhone(): string
    {
        return (string) $this->model->phone;
    }

    public function setPhone(string $phone): void
    {
        $this->model->phone = $phone;
    }

    public function getOutid(): string
    {
        return (string) $this->model->outid;
    }

    public function setOutid(string $outid): void
    {
        $this->model->outid = $outid;
    }

    public function getOpenid(): string
    {
        return (string) $this->model->openid;
    }

    public function setOpenid(string $openid): void
    {
        $this->model->openid = $openid;
    }
}
